#ifndef __CMYANIM_POOL_H
#define __CMYANIM_POOL_H

#include "cocos2d.h"
#include "CMyAnimInfo.h"
#include "CHashTable.h"

using namespace cocos2d;

#define DEF_ANIM_TABLE_SIZE	100

class CMyAnimPool
{
public:
	CMyAnimPool(void);
	CMyAnimPool(int size);
	~CMyAnimPool(void);

	void addAnim(const char *pInfoFile, const char *pAnimName = NULL);
	void clear(void);
	void removeAnim(const char *pAnimName, bool bExact=true);
	void removeAnim(CMyAnimInfo *pAnim);
	CMyAnimInfo *getAnimInfo(const char *pAnimName);
	const char * valueForKey(const char *key, CCDictionary *dict);

protected :
	CHashTable *m_pAnimTable;
};

#endif // __CMYANIM_POOL_H